package com.xfcy.blog.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 博客文章表(Article)表实体类
 *
 * @author 晓风残月Lx
 * @since 2023-04-09 11:01:24
 */
@TableName("b_article")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Article implements Serializable {
    //主键id
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    //用户id
    private Long userId;
    //分类id
    private Long categoryId;
    //文章标题
    private String title;
    //文章封面地址
    private String avatar;
    //文章简介
    private String summary;
    //文章内容 （最多两百字）
    private String content;
    //文章内容md版
    private String contentMd;
    //是否是私密文章 0 否 1是
    private Integer isSecret;
    //是否置顶 0否 1是
    private Integer isStick;
    //是否发布 0：下架 1：发布
    private Integer isPublish;
    //是否原创  0：转载 1:原创
    private Integer isOriginal;
    //转载地址
    private String originalUrl;
    //文章阅读量
    private Long quantity;
    //文章点赞量
    private Long likeCount;
    //说明
    private String remark;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    //seo关键词
    private String keywords;
    //修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}

